Mention window sizes in the migration guide
authorMatthias Clasen <mclasen@redhat.com>
Sat, 5 Dec 2020 17:41:52 +0000 (12:41 -0500)
committerJonas Ådahl <jadahl@gmail.com>
Mon, 7 Dec 2020 19:37:30 +0000 (20:37 +0100)
docs/reference/gtk/migrating-3to4.md

index 95847872f728aec46e94a40f70c866ca3b8f402f..c4024c9c2f12b0389d0ea9b0f7cfb9981c90a2e4 100644 (file)
@@ -510,9 +510,14 @@ gtk_window_set_gravity(), gtk_window_move(), gtk_window_parse_geometry(),
 gtk_window_set_keep_above(), gtk_window_set_keep_below(),
 gtk_window_begin_resize_drag(), gtk_window_begin_move_drag().
 Most likely, you should just stop using them. In some cases, you can
-fall back to using the underlying #GdkToplevel APIS (for example,
+fall back to using the underlying #GdkToplevel APIs (for example,
 gdk_toplevel_begin_resize()).
 
+The APIs for controlling GtkWindow size have changed to be better aligned
+with the way size changes are integrated in the frame cycle. gtk_window_resize()
+and gtk_window_get_size() have been removed. Instead, use
+gtk_window_set_default_size() and gtk_window_get_default_size().
+
 ### Adapt to GtkHeaderBar and GtkActionBar API changes
 
 The gtk_header_bar_set_show_close_button() function has been renamed to